<!DOCTYPE html>
<html  lang="en" xmlns:th="http://www.thymeleaf.org">
<head>

    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layout  - Layui</title>
    <link rel="stylesheet" th:href="@{/libs/layui/css/layui.css}">

    <link th:href="@{/css/page.css}" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">


</head>

<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">校园应用系统</div>

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    tester
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">Your Profile</a></dd>
                    <dd><a href="">Settings</a></dd>
                    <dd><a href="">Sign out</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">学生管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/findAll">学生基本信息管理</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item">
                    <a href="javascript:;">教室管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/findAllClassroom">教室信息管理</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item">
                    <a href="javascript:;">班级管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/findAllGrade">班级信息管理</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item">
                    <a href="javascript:;">宿舍管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/findAllDormitory">宿舍信息管理</a></dd>
                    </dl>
                </li>

            </ul>
        </div>
    </div>



    <div class="layui-body">
        <center>
        <br>
        <form action="/gradeQuery" method="post" >
            班级名称:<input type="text" name="gradeName" placeholder="班级名称" style="height:30px;width: 80px " >
            班主任姓名:<input type="text" name="classTeacherName" placeholder="班主任名称" style="height:30px;width: 80px ">
            讲师姓名:<input type="text" name="lecturerName" placeholder="讲师名称" style="height:30px;width: 80px ">
            <input  type="submit" value="查询" class="layui-btn layui-btn-warm " >
        </form>

    <br>

    <table  class="table">
        <tr>
            <th>主键Id</th>
            <th>班级Id</th>
            <th>班级名称</th>
            <th>班主任ID</th>
            <th>班主任姓名</th>
            <th>讲师ID</th>
            <th>讲师姓名</th>
            <th>学生数量</th>
            <th>所在教室ID</th>
            <th>所在教室编号</th>
            <th>操作</th>
        </tr>

        <tr th:each="list:${p.list}" class="active">
          <!--  <td>
                <input type="checkbox"  th:field="*{list.pkId}" name="ids">
            </td>-->
            <td th:text="${list.pkId}"></td>
            <td th:text="${list.gradeId}"></td>
            <td th:text="${list.gradeName}"></td>
            <td th:text="${list.classTeacherId}"></td>
            <td th:text="${list.classTeacherName}"></td>
            <td th:text="${list.lecturerId}"></td>
            <td th:text="${list.lecturerName}"></td>
            <td th:text="${list.studentsNumber}"></td>
            <td th:text="${list.classroomClassroomId}"></td>
            <td th:text="${list.classroomClassroomNumber}"></td>
            <td>
              <a th:href="@{/quan(pkId=${list.pkId})}"    class="layui-btn layui-btn-danger">查</a>
              <a th:href="@{/deleteGrade(pkId=${list.pkId})}"    class="layui-btn layui-btn-danger"><i class="layui-icon"></i>删除</a>
              <a th:href="@{/updateByIdGrade(pkId=${list.pkId})}"   class="layui-btn layui-btn-normal " ><i class="layui-icon"></i>修改</a>
            </td>
        </tr>

    </table>



    <div class="left">
        <form action="/findAllGrade" style="text-align: center;" method="post" >
            <ul class="pagination">
                <li ><a  href="/findAllGrade?pageNum=1">首页</a></li>
                <span th:if="${p.pageNum>1}"><li><a th:href="@{/findAllGrade(pageNum=${p.pageNum}-1)}">上一页</a></li></span>

                <span  test="${p.pageNum<p.pages}">
                    <li ><a href="/findAllGrade?pageNum=2">下一页</a></li>
                </span>

                <li ><a th:href="@{/findAllGrade(pageNum=${p.pages})}">末页</a></li>
                <li><a  th:text="${p.pages}"></a></li>
                <li><a >跳到<input type="text" name="pageNum" style="width: 20px; height: 20px">页</a></li>
                <li><a><input type="submit" value="GO" /></a></li>
            </ul>
        </form>
    </div>

        </center>

    </div>
    <script th:src="@{/libs/layui/layui.js}"></script>


</div>
</body>
</html>